package net.mabang.siciba;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;

public class SicibaForm extends JFrame {

	private static final long serialVersionUID = 1L;
	private static final int SFORM_WIDTH = 600;
	private static final int SFORM_HEIGHT = 480;
	private static final int DEFAUTL_WORD_COLUMNS = 60;

	public static void main(String[] argv) {

	}

	public SicibaForm() {
		setSize(SFORM_WIDTH, SFORM_HEIGHT);
		setTitle("Simle Iciba,Simple Life");
		// add a globle panel
		JPanel uiPanel = new JPanel();
		uiPanel.setLayout(new BorderLayout());

		// border north -- input textfiled + go button
		JPanel northPanel = new JPanel();
		JTextField inputField = new JTextField(
				(int) (DEFAUTL_WORD_COLUMNS * 0.7));
		JButton goButton = new JButton("Search");
		northPanel.add(inputField);
		northPanel.add(goButton);
		uiPanel.add(northPanel, BorderLayout.NORTH);

		// border center -- textarea readonly
		JTextArea showArea = new JTextArea(20, DEFAUTL_WORD_COLUMNS);
		showArea.setEditable(false);
		uiPanel.add(showArea, BorderLayout.CENTER);
		
		
		
		add(uiPanel);
	}
}